using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataModels.Models
{
    public partial class MergingReport
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Index("IX_MergingReports", IsUnique = true, Order = 0)]
        public Nullable<int> MergeId { get; set; }

        [Index("IX_MergingReports", IsUnique = true, Order = 1)]
        public Nullable<int> DestinationReportId { get; set; }

        [Index("IX_MergingReports", IsUnique = true, Order = 2)]
        public Nullable<int> SourceReportId { get; set; }

        // Navigation properties
        [ForeignKey("MergeId")]
        public virtual ReportMerge ReportMerge { get; set; }

        [ForeignKey("DestinationReportId")]
        public virtual Report DestinationReport { get; set; }

        [ForeignKey("SourceReportId")]
        public virtual Report SourceReport { get; set; }
    }
}
